package functional.closure;

/**
 * @ClassName Closure1
 * @PackageName functional.closure
 * @projectName myThread
 * @Description 
 * @Author games
 * @Date 2025/8/26 下午4:18
 * @Version 1.0
 */

import java.util.function.*;

public class Closure1 {
    int i;

    IntSupplier makeFun(int x) {
        return () -> x + i++;
    }
}
